package architecture;
//ControlHazardUnit
public class ControlHazardUnit{
	MyInt opCode;
	
	boolean judgeResult;
	
	void clockEvent(){
		judgeResult=false;
		if (opCode.i==0x2
				||opCode.i==0x4
				||opCode.i==0x5)
			judgeResult=true;
	}
	void dump(){
		System.out.println("--------");
		System.out.println("ControlHazardUnit:");
		System.out.println("opCode:"+opCode);
		System.out.println("judgeResult:"+judgeResult);
		System.out.println("--------");
	}
}